package com.xf.leecode.bean.linked;

public class Node<E> {
    public E item;
    public Node<E> prev;
    public Node<E> next;

    public Node(Node<E> prev, E element, Node<E> next) {
        this.item = element;
        this.next = next;
        this.prev = prev;
    }

    @Override
    public String toString() {
        return "Node{" +
                "item=" + item +
                ", next=" + next +
                '}';
    }
}
